package service.util
{
	/**
	 * This class is a Singletone containing the safe URLs allowed to 
	 * communicate with the server.
	 */
	public class HTTPStandardURL
	{
		private static const BASE_URL:String = "http://springleafweb.appspot.com";
		
		public static const LOGIN_URL:String = BASE_URL + "/login";
		public static const LOGOUT_URL:String = BASE_URL + "/logout";
		public static const DOMAIN_URL:String = BASE_URL + "/get-all-snippet-domains";
		public static const ADDSNIPPET_URL:String = BASE_URL + "/add-snippet-article";
		public static const ALLSNIPPETARTICLE_URL:String = BASE_URL + "/get-all-snippet-articles";
		
		public function HTTPStandardURL(enforcer:SingletoneEnforcer) {
			if (enforcer == null) {
				throw new Error();
			}
		}
	}
}

class SingletoneEnforcer {}